package com.wn.icloud.auth.service;


import com.wn.icloud.common.util.user.JwtAuthenticationRequest;

public interface AuthService {

    String login(JwtAuthenticationRequest authenticationRequest) throws Exception;

    String refresh(String oldToken) throws Exception;

    void validate(String token) throws Exception;

    /**
     * 生成测试用token
     * @param userName
     * @param userId
     * @throws Exception
     */
    String genTestToken(String userName, String userId) throws Exception;
}
